﻿using FreeSql.DataAnnotations;

namespace LF.Domain.Entities
{
    public class BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(IsPrimary = true)]
        public Guid Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(CanUpdate = false)]
        public DateTime? CreatTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column(CanUpdate = false)]
        public Guid? Creator { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public Guid? Updater { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
